import Vue from 'vue'
import Router from 'vue-router'
import User from '../components/User';
import Home from '../components/Home';
import Student from '../components/Student';
import AddUser from '../components/AddUser';
import UserEdit from '../components/UserEdit';

Vue.use(Router)

export default new Router({
  routes: [
    {path: '/',redirect: '/Home'},
    {path: '/Home',component: Home},
    {
      path: '/User',component: User,
      children:[
        {path:'AddUser',component:AddUser},
        {path:'UserEdit',component:UserEdit}
      ]
    },
    {path: '/Student',component: Student}
  ]
})
